If explicitly completing and we have a completion, just unselect it
authorFederico Mena Quintero <federico@gnu.org>
Thu, 13 Mar 2008 00:45:05 +0000 (00:45 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Thu, 13 Mar 2008 00:45:05 +0000 (00:45 +0000)
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19848

gtk/gtkfilechooserentry.c

index 4a51b306acdcfd9bf279e036dcab72efb23ba540..b9a2bebc400362efb07f1ed8070ca8d2d59a6761 100644 (file)
@@ -1062,15 +1062,9 @@ gtk_file_chooser_entry_focus (GtkWidget        *widget,
     {
       if (chooser_entry->has_completion)
        {
-         gboolean has_selection;
-         gint sel_end;
-
          printf ("Hit Tab, and we have a completion!  Will unselect it\n");
 
-         has_selection = gtk_editable_get_selection_bounds (editable, NULL, &sel_end);
-         g_assert (has_selection && sel_end == GTK_ENTRY (entry)->text_length);
-
-         gtk_editable_set_position (editable, sel_end);
+         gtk_editable_set_position (editable, entry->text_length);
        }
       else
        {